package com.aaa.proxy;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/8/18 11:51
 * @description：
 * @modified By：
 * @version:
 */
public class PhoneserviceLogProxy  implements PhoneService {
    LogUtil logUtil = new LogUtil();
    public void buyPhone(int num) {
        System.out.println("手机进货"+num+"部");
        logUtil.log("buyPhone");
    }
    public void salePhone(int num) {
        System.out.println("手机销售"+num+"部");
        logUtil.log("salePhone");

    }

    public static void main(String[] args) {
        PhoneService phoneService = new PhoneserviceLogProxy();
        phoneService.buyPhone(200);
    }
}
